<!DOCTYPE html>
<!--[if lt IE 7 ]> <html class="no-js ie ie6 ie-old"> <![endif]-->
<!--[if IE 7 ]>    <html class="no-js ie ie7 ie-old"> <![endif]-->
<!--[if IE 8 ]>    <html class="no-js ie ie8"> <![endif]-->
<!--[if IE 9 ]>    <html class="no-js ie ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html class="no-js"> <!--<![endif]-->
  <head>
	<?
		if ($sf_context->has("settings")){
			$settings=$sf_context->get("settings");
		}else{
			$settings=Settings::getInstance();
		}
		/* @var $settings Settings */

	    $currentSection = null;
		if ($sf_context->has("section")){
			$currentSection = $sf_context->get("section");
		}
	?>
    <? include_http_metas() ?>
    <? include_metas() ?>
    <? include_title() ?>

	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

	<!-- CSS RESET -->
	<link rel="stylesheet" href="/css/reset.css" type="text/css" />
    <? include_stylesheets() ?>


	<link rel="shortcut icon" href="<?= $settings["pageLayout.favicon"] ?>" />
	<title><?= $settings["texts.pageTitle"] ?></title>
	<meta name="keywords" content="<?= $settings["texts.metaKeywords"] ?>" />
	<meta name="description" content="<?= $settings["texts.metaDescription"] ?>" />
	<meta name="author" content="<?= $settings["texts.ownerName"] ?>" />

	<!-- CSS for template -->
	<!--<link rel="stylesheet" href="--><?//= url_for("settings_css") ?><!--" type="text/css" />-->
	<link rel="stylesheet" href="<?= url_for("template_settings_css") ?>" type="text/css" />
  </head>


  <body>
    <?= $sf_content ?>


    <!-- JQUERY and default plugins -->
	<script src="/lib/jquery/jquery-1.5.min.js" type="text/javascript"></script>
	<!--<script src="/lib/jquery/jquery-1.4.2.js" type="text/javascript"></script>-->
	<script src="/lib/plugins/jquery.cycle.min.js" type="text/javascript"></script>

    <? include_javascripts() ?>

    <!-- JS for template -->
	<script src="/templates/_shared/class.bertatemplate.slideshowgallery.js" type="text/javascript"></script>

	<!-- setting JS -->
	<!--<script src="<?= url_for("settings_js") ?>"></script>-->
    <script src="<?= url_for("template_settings_js") ?>"></script>
  </body>
</html>
